import type { MockMethod } from "vite-plugin-mock";

const menuList = {
  code: 200,
  msg: "获取菜单列表成功",
  data: [
    { name: "词云", path: "/nlp/wordcloud" },
    { name: "情感分析", path: "/nlp/sentiment" },
    { name: "文本摘要", path: "/nlp/summary" },
    { name: "命名实体识别", path: "/nlp/ner" },
    { name: "关键词提取", path: "/nlp/keyword" },
    { name: "文本分类", path: "/nlp/classification" },
  ],
};

export default [
  {
    url: "/api/v1/nlp/wordcloud",
    method: "get",
    response: () => {
      return menuList;
    },
  },
  {
    url: "/api/v1/nlp/sentiment",
    method: "get",
    response: () => {
      return menuList;
    },
  },
  {
    url: "/api/v1/nlp/summary",
    method: "get",
    response: () => {
      return menuList;
    },
  },
  {
    url: "/api/v1/nlp/ner",
    method: "get",
    response: () => {
      return menuList;
    },
  },
  {
    url: "/api/v1/nlp/keyword",
    method: "get",
    response: () => {
      return menuList;
    },
  },
  {
    url: "/api/v1/nlp/classification",
    method: "get",
    response: () => {
      return menuList;
    },
  },
] as MockMethod[];
